<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-2">
            <div class="ibox ibox-body">
                <div class="ibox-title">
                    <h5>选择人员</h5>
                </div>
                <div class="ibox-content">
                    <div id="jstree"></div>
                </div>
                <div shiro:hasPermission="yw:kh:user:add" class="ibox-content">
                    <button type="button"
                            class="btn  btn-primary" onclick="addUser()">
                        <i class="fa fa-plus hidden" aria-hidden="true"></i>人员变更
                    </button>
                </div>
            </div>
        </div>
        <div class="col-sm-10">
            <div class="ibox">
                <div class="ibox-body">
                    <div class="fixed-table-toolbar">
                        <div class="columns pull-left">
                            <button shiro:hasPermission="yw:kh:add" type="button"
                                    class="btn  btn-primary" onclick="ksAdd()">
                                <i class="fa fa-plus hidden" aria-hidden="true"></i>添加
                            </button>
                            <button shiro:hasPermission="yw:kh:excel" type="button"
                                    class="btn  btn-warning" onclick="selectRemove()">
                                <i class="fa fa-remove" aria-hidden="true"></i>删除
                            </button>
                            <button shiro:hasPermission="yw:kh:excel" type="button"
                                    class="btn  btn-danger" onclick="exportExcel()">
                                <i class="fa fa-trash hidden" aria-hidden="true"></i>导出Excel
                            </button>
                            <button shiro:hasPermission="yw:kh:excel" type="button"
                                    class="btn  btn-success" onclick="settlement()">
                                <i class="fa fa-trash hidden" aria-hidden="true"></i>考核结算
                            </button>
                        </div>
                        <div class="columns pull-right">
                            <button class="btn btn-success" onclick="reLoad()">查询</button>
                        </div>
                        <div class="columns pull-right col-md-2 ">
                            <input id="userId" type="text" class="hidden" title="" value="-1">
                            <input id="searchName" type="text" class="form-control"
                                   placeholder="指标名称">
                        </div>
                        <div class=" columns pull-right col-md-2">
                            <input id="searchDate" type="text" class="form-control"
                                   placeholder="查询日期">
                        </div>
                    </div>
                    <table id="exampleTable" data-mobile-responsive="true">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<div>
    <script>
        var s_edit_h = 'hidden';
        var s_remove_h = 'hidden';
    </script>
    <script shiro:haspermission="yw:kh:edit">
        s_edit_h = ''
    </script>
    <script shiro:haspermission="yw:kh:remove">
        s_remove_h = ''
    </script>

</div>
<div th:include="include :: footer"></div>
<script th:src="@{/appjs/yw/appraisalUser/appraisalUser.js}"></script>
<script th:src="@{/component/laydate/laydate.js}"></script>
</body>
</html>